import Ax from './api';

export default {
  deviceAdd: (param = {}) => Ax.put(`/device/add`, param),
  deviceEdit: (param = {}) => Ax.put(`/device/edit`, param),
  deviceDelete: (query = {}) => Ax.delete(`/device/delete?_id=${query._id}`),
  deviceList: (param = {}) => Ax.post(`/device/list`, param),
  deviceAll: (param = {}) => Ax.post(`/device/all`, param),
  deviceExportControl: (param = {}) => Ax.post(`/device/exportToControl`, param),
  deviceExportManager: (param = {}) => Ax.post(`/device/exportToManager`, param),
  deviceExportExcel: (param = {}) => Ax.post(`/device/exportToExcel`, param),
  deviceDetail: (query = {}) => Ax.get(`/device/detail?_id=${query._id}`),
};
